/**
 * 
 */

package com.chengyu.eyc.config.security;

import org.springframework.security.web.authentication.AuthenticationFailureHandler;
import org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler;
import org.springframework.stereotype.Component;

/**
 * @author kevin
 *
 */
@Component
public class EycAuthenticationFailureHandler extends SimpleUrlAuthenticationFailureHandler {

    /**
     * @param string
     * @return
     */
    public AuthenticationFailureHandler setFailureUrl(String failureUrl) {
        super.setDefaultFailureUrl(failureUrl);
        return this;
    }
}
